package org.example.demo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 购物车提交生成提单所需要的参数
 *
 */
@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public class ShopCartSubmitParam {

    @ApiModelProperty(value = "产品id")
    private Long productId;


    private Long id;

    @ApiModelProperty(value = "购买数量")
    private Integer quantity;

    @ApiModelProperty(value = "添加到购物车的价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品主图")
    private String picture;

    @ApiModelProperty(value = "商品名称")
    private String name;



}

